package com.zwh.dubbo.consumer.controller;

import com.zwh.dubbo.api.IUserService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {
    @Reference
    public IUserService userService;
    @GetMapping("/hello")
    public String hello(){
    return userService.hello();
    }
}
